.class Lcom/waiqin365/lightwork/directory/b/f;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/directory/b/d;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/directory/b/d;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7

    const/4 v6, 0x1

    const/4 v3, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/b/d;->d(Lcom/waiqin365/lightwork/directory/b/d;)Lcom/waiqin365/lightwork/directory/b/i;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/b/d;->e(Lcom/waiqin365/lightwork/directory/b/d;)Lcom/waiqin365/lightwork/directory/b/v;

    move-result-object v1

    iget v1, v1, Lcom/waiqin365/lightwork/directory/b/v;->m:I

    if-ne v1, v6, :cond_0

    iget v1, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->y:I

    const/16 v2, 0xd

    if-eq v1, v2, :cond_0

    invoke-virtual {v0, v6}, Lcom/waiqin365/lightapp/kehu/share/a/a;->a(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/b/d;->f(Lcom/waiqin365/lightwork/directory/b/d;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->clear()V

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/b/d;->f(Lcom/waiqin365/lightwork/directory/b/d;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/b/d;->d(Lcom/waiqin365/lightwork/directory/b/d;)Lcom/waiqin365/lightwork/directory/b/i;

    move-result-object v1

    invoke-interface {v1, v0}, Lcom/waiqin365/lightwork/directory/b/i;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p1, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-virtual {v1}, Lcom/waiqin365/lightwork/directory/b/d;->a()Ljava/util/List;

    move-result-object v4

    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

    move v2, v3

    :goto_1
    invoke-interface {v4}, Ljava/util/List;->size()I

    move-result v1

    if-ge v2, v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/b/d;->e(Lcom/waiqin365/lightwork/directory/b/d;)Lcom/waiqin365/lightwork/directory/b/v;

    move-result-object v1

    iget-boolean v1, v1, Lcom/waiqin365/lightwork/directory/b/v;->i:Z

    if-nez v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/b/d;->e(Lcom/waiqin365/lightwork/directory/b/d;)Lcom/waiqin365/lightwork/directory/b/v;

    move-result-object v1

    iget-boolean v1, v1, Lcom/waiqin365/lightwork/directory/b/v;->j:Z

    if-nez v1, :cond_2

    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-boolean v1, v1, Lcom/waiqin365/lightapp/kehu/share/a/a;->v:Z

    if-eqz v1, :cond_1

    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-interface {v5, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    :goto_2
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_1

    :cond_2
    invoke-interface {v4, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    invoke-interface {v5, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    :cond_3
    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v1

    iget-object v2, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v2}, Lcom/waiqin365/lightwork/directory/b/d;->e(Lcom/waiqin365/lightwork/directory/b/d;)Lcom/waiqin365/lightwork/directory/b/v;

    move-result-object v2

    iget v2, v2, Lcom/waiqin365/lightwork/directory/b/v;->m:I

    if-lt v1, v2, :cond_4

    move-object v1, p1

    check-cast v1, Landroid/widget/CheckBox;

    invoke-virtual {v1}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v1

    if-eqz v1, :cond_4

    check-cast p1, Landroid/widget/CheckBox;

    invoke-virtual {p1, v3}, Landroid/widget/CheckBox;->setChecked(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v0}, Lcom/waiqin365/lightwork/directory/b/d;->g(Lcom/waiqin365/lightwork/directory/b/d;)Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/b/d;->g(Lcom/waiqin365/lightwork/directory/b/d;)Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f080267

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-array v2, v6, [Ljava/lang/Object;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v5}, Lcom/waiqin365/lightwork/directory/b/d;->e(Lcom/waiqin365/lightwork/directory/b/d;)Lcom/waiqin365/lightwork/directory/b/v;

    move-result-object v5

    iget v5, v5, Lcom/waiqin365/lightwork/directory/b/v;->m:I

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string/jumbo v5, ""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/lightwork/directory/b/f;->a:Lcom/waiqin365/lightwork/directory/b/d;

    invoke-static {v1}, Lcom/waiqin365/lightwork/directory/b/d;->h(Lcom/waiqin365/lightwork/directory/b/d;)V

    new-instance v1, Ljava/lang/Thread;

    new-instance v2, Lcom/waiqin365/lightwork/directory/b/g;

    invoke-direct {v2, p0, v0, p1}, Lcom/waiqin365/lightwork/directory/b/g;-><init>(Lcom/waiqin365/lightwork/directory/b/f;Lcom/waiqin365/lightapp/kehu/share/a/a;Landroid/view/View;)V

    invoke-direct {v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    goto/16 :goto_0
.end method
